import request from '@/utils/request'

// 查询盒贴标签模板列表
export function listMachineBoxBarcodeTag(query) {
  return request({
    url: '/product/machineBoxBarcodeTag/list',
    method: 'get',
    params: query
  })
}

// 查询盒贴标签模板详细
export function getMachineBoxBarcodeTag(boxBarcodeTagTempId) {
  return request({
    url: '/product/machineBoxBarcodeTag/' + boxBarcodeTagTempId,
    method: 'get'
  })
}

// 新增盒贴标签模板
export function addMachineBoxBarcodeTag(data) {
  return request({
    url: '/product/machineBoxBarcodeTag',
    method: 'post',
    data: data
  })
}

// 修改盒贴标签模板
export function updateMachineBoxBarcodeTag(data) {
  return request({
    url: '/product/machineBoxBarcodeTag',
    method: 'put',
    data: data
  })
}

// 删除盒贴标签模板
export function delMachineBoxBarcodeTag(boxBarcodeTagTempId) {
  return request({
    url: '/product/machineBoxBarcodeTag/' + boxBarcodeTagTempId,
    method: 'delete'
  })
}

// 导出盒贴标签模板
export function exportMachineBoxBarcodeTag(query) {
  return request({
    url: '/product/machineBoxBarcodeTag/export',
    method: 'get',
    params: query
  })
}